<template>
  <div>
    <el-dialog title="充值详情" :visible.sync="showDetialDialog" width="30%">
      <div>
        <el-row>
          <el-col :span="24">
            <div class="grid-content bg-purple contentText">
              <div>
                <div class="divLabel">
                  <label>账户名</label>
                </div>
                <span>{{ data.name }}</span>
              </div>
            </div>
          </el-col>
          <el-col :span="24">
            <div class="grid-content bg-purple contentText">
              <div>
                <div class="divLabel">
                  <label>日期</label>
                </div>
                <span>{{ data.date }}</span>
              </div>
            </div>
          </el-col>
          <el-col :span="24">
            <div class="grid-content bg-purple contentText">
              <div>
                <div class="divLabel">
                  <label>联系方式</label>
                </div>
                <span>{{ data.tel }}</span>
              </div>
            </div>
          </el-col>
          <el-col :span="24">
            <div class="grid-content bg-purple contentText">
              <div>
                <div class="divLabel">
                  <label>充值金额</label>
                </div>
                <span>{{ data.money }}</span>
              </div>
            </div>
          </el-col>
          <el-col :span="12">
            <div class="grid-content bg-purple contentText">
              <div>
                <div class="divLabel">
                  <label>余额</label>
                </div>
                <span>{{ data.haveMoney }}</span>
              </div>
            </div>
          </el-col>
          <el-col :span="24">
            <div class="grid-content bg-purple contentText">
              <div>
                <div class="divLabel">
                  <label>备注</label>
                </div>
                <span>{{ data.note }}</span>
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="closeDialog">取 消</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    data: {
      type: Object,
      required: true
    },
    note: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      noteArea: '',
      showDetialDialog: true,
      form: {
        name: ''
      }
    };
  },
  mounted() {
    this.noteArea = this.note;
  },
  methods: {
    closeDialog() {
      this.$emit('closedetial');
    }
  }
};
</script>
<style lang="scss" scoped>
.contentText {
  > div {
    margin-bottom: 10px;
  }
  .divLabel {
    display: inline-block;
    width: 100px;
    text-align: right;
    padding: 0 10px;
  }
}
.el-dialog__header {
  border-bottom: 1px solid gainsboro;
}
</style>
